package com.teachsys.tms.controller;

import com.teachsys.tms.entity.User;
import com.teachsys.tms.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
public class UserController {

    @Resource
    private UserService userService;

    @GetMapping("query")
    public User query(String username){

        return this.userService.query(username);
    }

}
